﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Xajhzwb.Components.Util;

namespace Xajhzwb.Components.Data
{
    public class TaskData
    {
        #region Rule_Task
        /// <summary>
        /// 任务ID
        /// </summary>
        private int m_TaskID;
        public int TaskID
        {
            get { return m_TaskID; }
            set { m_TaskID = value; }
        }

        /// <summary>
        /// 任务名称
        /// </summary>
        private string m_TaskName;
        public string TaskName
        {
            get { return m_TaskName; }
            set { m_TaskName = value; }
        }

        /// <summary>
        /// 采集ID
        /// </summary>
        private int m_RuleGet;
        public int RuleGet
        {
            get { return m_RuleGet; }
            set { m_RuleGet = value; }
        }

        /// <summary>
        /// 过滤ID
        /// </summary>
        private int m_RuleGlobal;
        public int RuleGlobal
        {
            get { return m_RuleGlobal; }
            set { m_RuleGlobal = value; }
        }

        /// <summary>
        /// 发布类型
        /// </summary>
        private int m_RulePublishType;
        public int RulePublishType
        {
            get { return m_RulePublishType; }
            set { m_RulePublishType = value; }
        }

        /// <summary>
        /// WEB发布ID
        /// </summary>
        private int m_RulePublish;
        public int RulePublish
        {
            get { return m_RulePublish; }
            set { m_RulePublish = value; }
        }

        /// <summary>
        /// 发布
        /// </summary>
        private int m_PublishType;
        public int PublishType
        {
            get { return m_PublishType; }
            set { m_PublishType = value; }
        }

        /// <summary>
        /// 导出文件
        /// </summary>
        private string m_ExportFile;
        public string ExportFile
        {
            get { return m_ExportFile; }
            set { m_ExportFile = value; }
        }

        /// <summary>
        /// 是否导出表头
        /// </summary>
        private bool m_IsExportHeader;
        public bool IsExportHeader
        {
            get { return m_IsExportHeader; }
            set { m_IsExportHeader = value; }
        }

        /// <summary>
        /// 数据库连接字符
        /// </summary>
        private string m_DataSource;
        public string DataSource
        {
            get { return m_DataSource; }
            set { m_DataSource = value; }
        }

        /// <summary>
        /// 数据库表名
        /// </summary>
        private string m_DataTableName;
        public string DataTableName
        {
            get { return m_DataTableName; }
            set { m_DataTableName = value; }
        }

        /// <summary>
        /// 数据库操作SQL
        /// </summary>
        private string m_InsertSql;
        public string InsertSql
        {
            get { return m_InsertSql; }
            set { m_InsertSql = value; }
        }

        /// <summary>
        /// 任务延迟时间
        /// </summary>
        private bool m_TaskDelay;
        public bool TaskDelay
        {
            get { return m_TaskDelay; }
            set { m_TaskDelay = value; }
        }

        /// <summary>
        /// 顺序
        /// </summary>
        private int m_Sort;
        public int Sort
        {
            get { return m_Sort; }
            set { m_Sort = value; }
        }

        /// <summary>
        /// 分类ID
        /// </summary>
        private int m_ClassID;
        public int ClassID
        {
            get { return m_ClassID; }
            set { m_ClassID = value; }
        }
        #endregion

        private string m_FileName;
        public string FileName
        {
            get { return m_FileName; }
            set { m_FileName = value; }
        }

        /// <summary>
        /// 采集的数据
        /// </summary>
        private DataTable m_TempData;
        public DataTable TempData
        {
            get { return m_TempData; }
            set { m_TempData = value; }
        }

        /// <summary>
        /// 采集设定
        /// </summary>
        private GatherData m_GatherData;
        internal GatherData GatherData
        {
            get { return m_GatherData; }
            set { m_GatherData = value; }
        }

        /// <summary>
        /// 过滤设定
        /// </summary>
        private GlobalData m_GlobalData;
        public GlobalData GlobalData
        {
            get { return m_GlobalData; }
            set { m_GlobalData = value; }
        }

        /// <summary>
        /// 发布设定
        /// </summary>
        private PublishData m_PublishData;
        public PublishData PublishData
        {
            get { return m_PublishData; }
            set { m_PublishData = value; }
        }

        /// <summary>
        /// 下载的附件
        /// </summary>
        private List<string> m_UploadFile;
        public List<string> UploadFile
        {
            get { return m_UploadFile; }
            set { m_UploadFile = value; }
        }


        //private bool m_IsTrigger;
        //public bool IsTrigger
        //{
        //    get { return m_IsTrigger; }
        //    set { m_IsTrigger = value; }
        //}

        //private string m_TriggerType;
        //public string TriggerType
        //{
        //    get { return m_TriggerType; }
        //    set { m_TriggerType = value; }
        //}





        //public bool IsAutoTime { get; set; }
        //public string AutoTime { get; set; }
    }
}
